package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class ProjectTemp extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = -394164821717241436L;
	// Fields    
	private Long projectId; 
	private String projctNum; 
	private String projectName; 
	private String shortname; 
	private Long manager; 
	private Long parentid; 
	private Date duestartdate; 
	private Date dueenddate; 
	private Integer projectstatus; 
	private String memo; 
	private Long ownerbu; 
	private Long creater; 
	private Timestamp createdate; 
	private Timestamp updatetime; 
	private Long updater; 
		
	//default constructor
    public ProjectTemp() {
    	super();
    }
    
    // Property accessors
	public Long getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Long projectId) {
    	this.projectId = projectId;
    }
    
	public String getProjctNum() {
        return this.projctNum;
    }
    
    public void setProjctNum(String projctNum) {
    	this.firePropertyChange("projctNum", this.projctNum, projctNum);
    	this.projctNum = projctNum;
    }
    
	public String getProjectName() {
        return this.projectName;
    }
    
    public void setProjectName(String projectName) {
    	this.firePropertyChange("projectName", this.projectName, projectName);
    	this.projectName = projectName;
    }
    
	public String getShortname() {
        return this.shortname;
    }
    
    public void setShortname(String shortname) {
    	this.firePropertyChange("shortname", this.shortname, shortname);
    	this.shortname = shortname;
    }
    
	public Long getManager() {
        return this.manager;
    }
    
    public void setManager(Long manager) {
    	this.firePropertyChange("manager", this.manager, manager);
    	this.manager = manager;
    }
    
	public Long getParentid() {
        return this.parentid;
    }
    
    public void setParentid(Long parentid) {
    	this.firePropertyChange("parentid", this.parentid, parentid);
    	this.parentid = parentid;
    }
    
	public Date getDuestartdate() {
        return this.duestartdate;
    }
    
    public void setDuestartdate(Date duestartdate) {
    	this.firePropertyChange("duestartdate", this.duestartdate, duestartdate);
    	this.duestartdate = duestartdate;
    }
    
	public Date getDueenddate() {
        return this.dueenddate;
    }
    
    public void setDueenddate(Date dueenddate) {
    	this.firePropertyChange("dueenddate", this.dueenddate, dueenddate);
    	this.dueenddate = dueenddate;
    }
    
	public Integer getProjectstatus() {
        return this.projectstatus;
    }
    
    public void setProjectstatus(Integer projectstatus) {
    	this.firePropertyChange("projectstatus", this.projectstatus, projectstatus);
    	this.projectstatus = projectstatus;
    }
    
	public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
    	this.firePropertyChange("memo", this.memo, memo);
    	this.memo = memo;
    }
    
	public Long getOwnerbu() {
        return this.ownerbu;
    }
    
    public void setOwnerbu(Long ownerbu) {
    	this.firePropertyChange("ownerbu", this.ownerbu, ownerbu);
    	this.ownerbu = ownerbu;
    }
    
	public Long getCreater() {
        return this.creater;
    }
    
    public void setCreater(Long creater) {
    	this.firePropertyChange("creater", this.creater, creater);
    	this.creater = creater;
    }
    
	public Timestamp getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(Timestamp createdate) {
    	this.firePropertyChange("createdate", this.createdate, createdate);
    	this.createdate = createdate;
    }
    
	public Timestamp getUpdatetime() {
        return this.updatetime;
    }
    
    public void setUpdatetime(Timestamp updatetime) {
    	this.firePropertyChange("updatetime", this.updatetime, updatetime);
    	this.updatetime = updatetime;
    }
    
	public Long getUpdater() {
        return this.updater;
    }
    
    public void setUpdater(Long updater) {
    	this.firePropertyChange("updater", this.updater, updater);
    	this.updater = updater;
    }
    
   	public boolean validate(Object arg0) {
		//ProjectTemp ProjectTemp = (ProjectTemp)arg0;
		//Validation.required("ProjectTemp.projectId",ProjectTemp.getProjectId());
		return true;
	}
}